#include "LogPlugin.h"
#include "LogPlugin/LogModule.h"

using namespace FragrantGrass;

#ifdef FG_DYNAMIC_PLUGIN

FG_EXPORT void DllStartPlugin(IPluginManager* pm)
{
    CREATE_PLUGIN(pm, LogPlugin)
};

FG_EXPORT void DllStopPlugin(IPluginManager* pm)
{
    DESTROY_PLUGIN(pm, LogPlugin)
};

#endif

//////////////////////////////////////////////////////////////////////////

const int FragrantGrass::LogPlugin::GetPluginVersion()
{
    return 0;
}

const std::string FragrantGrass::LogPlugin::GetPluginName()
{
	return GET_CLASS_NAME(LogPlugin);
}

void FragrantGrass::LogPlugin::Install()
{
    REGISTER_MODULE(m_pPluginManager, ILogModule, LogModule)
}

void FragrantGrass::LogPlugin::Uninstall()
{
    UNREGISTER_MODULE(m_pPluginManager, ILogModule, LogModule)
}